package xiaoming;
import static java.lang.Math.pow;

public class march_30_4 {

	public static void main(String[] args) {
		int i = 100;
		while(i<=999) {
			int gewei = i%10;
			int shiwei = i/10%10;
			int baiwei = i/100%10;
			if (i==pow(gewei,3)+pow(shiwei, 3)+pow(baiwei, 3)) {
				System.out.println(i);
			}
			i++;
		}

	}

}
